]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
ci: Don't install fake pkexec in toolbox image
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 20 Jul 2023 22:44:18 +0000 (00:44 +0200)
committerMarge Bot <marge-bot@gnome.org>
Sun, 23 Jul 2023 11:42:56 +0000 (11:42 +0000)
The mutter image already replaces `pkexec` with a symlink to
`sudo`, which does the same job as the `su` wrapper.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2850>

.gitlab-ci/build-toolbox-image.sh

index 2e07cb1311f3d5bd8b053f866572068fb98c9a5e..8e6b8537080afda796d12437f5e89a10230acfbd 100755 (executable)
@@ -40,14 +40,6 @@ build_container() {
   buildah run $build_cntr dnf clean all
   buildah run $build_cntr rm -rf /var/lib/cache/dnf
 
-  # work around non-working pkexec
-  local fake_pkexec=$(mktemp)
-  cat > $fake_pkexec <<-'EOF'
-       #!/bin/sh
-       exec su -c "$*"
-       EOF
-  buildah copy --chmod 755 $build_cntr $fake_pkexec /usr/bin/pkexec
-
   # disable gnome-keyring activation:
   # it either asks for unlocking the login keyring on startup, or it detects
   # the running host daemon and doesn't export the object on the bus, which